/*
 * Copyright 2009 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.google.android.apps.mytracks.content;

import static com.google.android.apps.mytracks.content.ContentTypeIds.LONG_TYPE_ID;
import static com.google.android.apps.mytracks.content.ContentTypeIds.STRING_TYPE_ID;

import android.provider.BaseColumns;

/**
 * Constants for investigados table.
 * 
 * @author Leif Hendrik Wilden
 */
public interface TelefonosClienteColumns extends BaseColumns {

  public static final String TABLE_NAME = "telefonoClientes";
  public static final String DEFAULT_SORT_ORDER = "_id";

  // Columns
  public static final String CLIENTEID = "clienteid"; // track id
  public static final String NUMERO = "numero";
  public static final String TIPO = "tipo";
  
  public static final String CREATE_TABLE = "CREATE TABLE " + TABLE_NAME + " (" 
      + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
      + CLIENTEID + " INTEGER, "
      + NUMERO + " STRING, "
      + TIPO + " STRING, "
      + " FOREIGN KEY ("+CLIENTEID+") REFERENCES "+ClientesColumns.TABLE_NAME+" ("+ClientesColumns._ID+") ON DELETE CASCADE"
      + ");";
  
  public static final String[] COLUMNS = {
      _ID,
      CLIENTEID,
      NUMERO,
      TIPO
    };
    
  public static final byte[] COLUMN_TYPES = {
      LONG_TYPE_ID, // id
      LONG_TYPE_ID, // cliente id
      STRING_TYPE_ID, // numero
      STRING_TYPE_ID}; //tipo
}
